package com.bykj.property.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import com.bykj.property.controller.vo.request.ChargeStandardPageRequest;
import com.bykj.property.model.ChargeStandard;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.*;
import com.bykj.property.mapper.provider.ChargeStandardSql;
import org.apache.ibatis.mapping.FetchType;


/**
* <p>
    * 收费标准表 Mapper 接口
    * </p>
*
* @author liangyiming
* @since 2019-06-20
*/
public interface ChargeStandardMapper extends BaseMapper<ChargeStandard> {
    @SelectProvider(type=ChargeStandardSql.class, method = "getSql")
    @Results({
            @Result(property = "chargeTypeId",column = "charge_type_id"),
            @Result(property = "pmVillageId",column = "pm_village_id"),
            @Result(property = "chargeType",column = "charge_type_id",one = @One(select = "com.bykj.property.mapper.ChargeTypeMapper.selectById"))
            ,@Result(property = "pmVillage",column = "pm_village_id",one = @One(select = "com.bykj.property.mapper.PmVillageMapper.selectById"))
    })
    Page<ChargeStandard> queryPage(ChargeStandardPageRequest pageRequest);

}